import { $post ,$get,$put,$del } from "@/utils/request";

//新增收货地址
export let add=(params)=>{
   return $post("/address/add",params)
}

//修改收货地址
export let update=(params)=>{
   return $put("/address/chagneInfo",params)
}

//删除收货地址
export let del=(params)=>{
   return $del("/address/del",{params})
}

//地址列表
export let list=(params)=>{
   return $get("/address/list",{params})
}

//修改默认收货地址
export let isDefault=(params)=>{
    return $put("/address/isDefault",params)
 }